package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbplan_info")
public class DevtZbplanInfoEntity {
    private String id;
    private String plancode;
    private String planname;
    private String typecode;
    private String typeid;
    private Integer xh;
    
    @Basic
    @Column(name = "xh", nullable = true, length = 256)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "plancode", nullable = true, length = 256)
    public String getPlancode() {
        return plancode;
    }
    
    public void setPlancode(String plancode) {
        this.plancode = plancode;
    }
    
    @Basic
    @Column(name = "planname", nullable = true, length = 256)
    public String getPlanname() {
        return planname;
    }
    
    public void setPlanname(String planname) {
        this.planname = planname;
    }
    
    @Basic
    @Column(name = "typecode", nullable = true, length = 256)
    public String getTypecode() {
        return typecode;
    }
    
    public void setTypecode(String typecode) {
        this.typecode = typecode;
    }
    
    @Basic
    @Column(name = "typeid", nullable = true, length = 256)
    public String getTypeid() {
        return typeid;
    }
    
    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbplanInfoEntity that = (DevtZbplanInfoEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(plancode, that.plancode) && Objects.equals(planname, that.planname) && Objects.equals(typecode, that.typecode) && Objects.equals(typeid, that.typeid);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, plancode, planname, typecode, typeid);
    }
}
